﻿using Entity.Models.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity.Models.vo
{
    /// <summary>
    /// 部门下拉框树目录vo类
    /// </summary>
    public class DepartmentVO
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 父目录名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string ulr { get; set; }

        /// <summary>
        /// 是否展开树目录(true:展开\false:关闭)
        /// </summary>
        public bool open { get; set; }
        
        /// <summary>
        /// 子类
        /// </summary>
        public List<DepartmentVO> children { get; set; }


        public DepartmentVO(DepartmentInfo departmentInfo)
        {
            this.id = departmentInfo.Id;
            this.name = departmentInfo.DepartmentName;
        }


        public DepartmentVO()
        {
        }
    }
}
